

cmake_minimum_required(VERSION 2.8)
PROJECT(HELLO)


add_subdirectory(lib1)
add_subdirectory(lib2)

set(hello_INCLUDE ${CMAKE_CURRENT_SOURCE_DIR}/include0 ${aa_INCLUDE} ${bb_INCLUDE} )

add_executable(hello main.c)


add_dependencies(hello aa bb)

target_link_libraries(hello aa bb )

target_include_directories(hello PUBLIC ${hello_INCLUDE})


#set_target_properties( hello PROPERTIES INCLUDE_DIRECTORY "fdabdkfsd f ff  ff f f f f" )

#get_target_property(vara hello INCLUDE_DIRECTORY )
#get_target_property(varb bb INCLUDE_DIRECTORY )
#message( "target aa_include_directories=" ${vara} )
#message( "target aa_include_directories=" ${varb} )

#message( "TOP" )
 
message( "PROJECT_SOURCE_DIR=" ${PROJECT_SOURCE_DIR} )
message( "HELLO_SOURCE_DIR=" ${HELLO_SOURCE_DIR} )
message( "CMAKE_SOURCE_DIR=" ${CMAKE_SOURCE_DIR} )
message( "CMAKE_SOURCE_DIR=" ${CMAKE_SOURCE_DIR} )
 
message( "PROJECT_BINARY_DIR=" ${PROJECT_BINARY_DIR} )
message( "HELLO_BINARY_DIR=" ${HELLO_BINARY_DIR} )
message( "CMAKE_BINARY_DIR=" ${CMAKE_BINARY_DIR} )
message( "CMAKE_BINARY_DIR=" ${CMAKE_BINARY_DIR} )
 
message( "hello_SOURCES=" ${hello_SOURCES} )
message( "hello_INCLUDE_DIR=" ${hello_INCLUDE_DIR} )
message( "CMAKE_CURRENT_SOURCE_DIR=" ${CMAKE_CURRENT_SOURCE_DIR} )




